using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseController
{
    private BaseWindow view;
    public virtual void SetView(BaseWindow v)
    {
        view = v;
    }

    public virtual void InitWindow()
    {
        view.enabled = true;
        view.gameObject.SetActive(false);
    }

    public virtual void OpenWindow()
    {
        view.gameObject.SetActive(true);
        view.transform.SetAsLastSibling();
        view.开窗动画();
    }

    public virtual void CloseWindow()
    {
        view.关窗动画();
    }
}
